package cn.edu.scau.cmi.pengzhijie.abstractFactory.factory;


import cn.edu.scau.cmi.pengzhijie.abstractFactory.dominAbstractClass.ConsumerMeat;

public abstract class AbstractFactory {
	public static AbstractFactory getFactory(String brand) {
		switch (brand) {
		case "wens":
			return new WensFactory();
		case "tianbang":
			return new TianBangFactory();
		case "aonong":
			return new AoNongFactory();
		default:
			System.out.println("没有你要的品牌");
		}
		return null;
	}
	public abstract ConsumerMeat createBeef();
	public abstract ConsumerMeat createPork();
	public abstract ConsumerMeat createChicken();
}
